home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 563 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  28.9 KB

  1. Path: conch.aa.msen.com!not-for-mail
  2. From: brain@mail.msen.com (Jim Brain)
  3. Newsgroups: comp.sys.cbm
  4. Subject: COMP.SYS.CBM: General FAQ, v3.0 Part 7/9 (beta)
  5. Supersedes: <cbmmainfaq71295@msen.com>
  6. Followup-To: comp.sys.cbm
  7. Date: 10 Jan 1996 17:05:41 -0500
  8. Organization: Brain Innovations, Inc.
  9. Sender: brain@msen.com
  10. Approved: news-answers-request@MIT.EDU
  11. Expires: 05 Feb 1996
  12. Message-ID: <cbmmainfaq70196@msen.com>
  13. Reply-To: brain@mail.msen.com
  14. NNTP-Posting-Host: conch.aa.msen.com
  15. Summary: This posting contains answers to questions that commonly surface in
  16.          comp.sys.cbm.  This posting will tell you enough to get your
  17.          computer connected to a network, fixed, and/or enhanced.  This file
  18.          should be read by new users of comp.sys.cbm before posting to the
  19.          group.  It should also be proofread by users who are currently
  20.          active in comp.sys.cbm.
  21. Keywords: CBM FAQ Help List C64 C128 VIC Modem
  22. X-URL: http://www.msen.com/~brain/
  23.  
  24.  
  25. X-Posted-By: YPost, version 0.07.B1109
  26.  
  27.  
  28. Archive-name: cbm-main-faq.3.1.p7
  29. Comp-answers-archive-name: commodore/main-faq/part7
  30. News-answers-archive-name: commodore/main-faq/part7
  31. Comp-sys-cbm-archive-name: main-faq/part7
  32. Version: 3.1
  33. Last-modified: 1995/10/10
  34.              
  35.  
  36.   ---------------------------------------------------------------------------
  37.   
  38.   Table of Contents (for this file)
  39.   ---------------------------------
  40.  
  41.   10.  Emulators
  42.   10.1.  What is an emulator?
  43.   10.2.  What platforms do 64 emulators exist on?
  44.   10.3.  What platforms do 128 emulators exist on?
  45.   10.4.  Are any other Commodore computers emulated?
  46.  
  47.   11.  Troubleshooting
  48.   11.1.  What do I do for my ill disk drive?
  49.   11.2.  What do I do for my ill computer?
  50.   11.2.1.  What do I do for my ill Commodore 64?
  51.   11.2.2.  What do I do for my ill Commodore 128?
  52.   11.3.  What do I do for my ill keyboard?
  53.   
  54.   12.  Modifications and Cabling
  55.   12.1.  How can you alter which side a 1571 reads from?
  56.   12.2.  How do I open a C128 power supply?
  57.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  58.   12.4.  How do I build a simple RS-232 interface cable?
  59.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  60.   12.6.  How can I determine how much VDC video memory is in my C128?
  61.   12.7.  How do I build a GEOCable interface?
  62.   
  63.   ---------------------------------------------------------------------------
  64.  
  65.  
  66.   10.  Emulators
  67.   
  68.   As time moves on, people move to other computer systems, for business resons
  69.   or otherwise.  However, many still long to play Commodore games, use 
  70.   Commodore software, and enjoy Commodore demos.  Thus, emulators were born
  71.   to bring the non-Commodore computer owner the enjoyment of owning a
  72.   Commodore.
  73.   
  74.     
  75.   10.1.  What is an emulator?
  76.   
  77.   An emulator is a piece of software that runs on a given platform and
  78.   emulates, or mimics, the operation of another machine.  When the
  79.   emulator loads up a program, the programs runs as though it were running
  80.   on the emulated platform.
  81.  
  82.   For more information on emulators and their use, please see the emulator
  83.   faq, located in the same directory as this one, under the name of
  84.   cbm.emulation.faq.  The Commodore emulator FAQ is maintained by Russell J.
  85. | Alphey and can also be obtained from him at 
  86. + Russell_Alphey@muwayf.unimelb.edu.au or R.Alphey@agriculture.unimelb.edu.au.
  87.   
  88.   For those with WWW browsers, the CBM Emulation FAQ is at:
  89.  
  90. | http://hangar18.acns.nwu.edu/users/aforte/cbm/cbm.emu.faq.toc.html
  91.                           
  92.   
  93.   10.2.  What platforms do 64 emulators exist on?
  94.   
  95.   Well, C64S exists for the IBM, and X64 is available for anyone running
  96.   X over UNIX.  There is also some development on a C64 emulator for the
  97.   Macintosh.  If you own an Amiga, you can purchase A64 to allow the Amiga
  98.   to run C64 applications.
  99.  
  100.   
  101.   10.3.  What platforms do 128 emulators exist on?
  102.   
  103.   There is a very basic Commodore 128 emulator bundled available for the 
  104.   UNIX platform under X.  It is bundled with X64.
  105.  
  106.   
  107.   10.4.  Are any other Commodore computers emulated?
  108.   
  109.   There is a commodore product called the PET emulator that remaps a
  110.   Commodore 64 to emulate a PET 40 column unit (i.e. PET 4032).  You can
  111.   run this program on a C64 to emulate a PET, or you can run this program
  112.   on a 64 emulator to emulate a PET on an IBM, for example.  You can also
  113.   emulate a VIC-20 on some machines.
  114.  
  115.   Although not necessarily a different Commodore computer, there is a
  116.   GEOS emulator in the works.  It is called GEOS Warp v1.0 and information
  117.   is available at http://stud1.tuwien.ac.at/~e9426444/geoswarp/index.html.
  118.   A version for the Apple PowerMac is in the alpha stage, and support for
  119.   a PC version.  Plans for a UNIX/X11 version are still unclear.  The author
  120.   is Andreas Varga, and can be contacted at e9426444@stud1.tuwien.ac.at.
  121.  
  122.  
  123.   11.  Troubleshooting
  124.   
  125.   
  126.   11.1.  What do I do for my ill disk drive?
  127.  
  128.   If the drive spins and the LEDs are off:
  129.   
  130.   At the back of the 1541 circuit board are two bridge rectifiers - stout
  131.   epoxy packages with 4 leads each. The innermost one is defective
  132.  
  133.   If both LEDs are dim:
  134.   
  135.   The 5VDC regulator is bad.
  136.   
  137.   If both LEDS are on:
  138.   
  139.   Drive did not make it through the power-on reset sequence.  Kernal ROM
  140.   (901229-05) is susepct, as is (in order of expectation):  VIA (6522), 
  141.   CPU (6502), RAM (6116 or equivalent), or a "glue" chip in the reset logic
  142.  
  143.   If your drive won't even accept input from the computer, and the drive
  144.   light is making some blinking pattern, then the drive may be telling you
  145.   what is wrong.
  146.  
  147.   No Blink       Kernal (E000-FFFF) ROM or 6522 VIA Failure
  148.   One Blink      6116 RAM Failure
  149.   Two Blinks     Possible Zero Page RAM Failure
  150.   Three Blinks   DOS (C000-CFFF) ROM Failure
  151.   Four Blinks    DOS (C000-CFFF) ROM Failure
  152.   Five Blinks    6116 RAM Failure
  153.   Six Blinks     6116 RAM Failure
  154.   Seven Blinks   6116 RAM Failure
  155.   Eight Blinks   6116 RAM Failure
  156.  
  157.   1541
  158.  
  159.   The most common problem facing the 1541 disk drive is alignment.  If your
  160.   1541 has trouble reading commercial disks, or reading disks written some
  161.   time ago, but has less trouble reading recently written disks, chances are
  162.   that your 1541 is out of alignment.  C= service centers will typically align
  163.   a 1541 for anywhere from $20 to $45.  There are also 1541 alignment
  164.   programs, (e.g. Free Spirit's "1541/71 Alignment System") which allow you
  165.   to align a 1541 yourself.  There are those who claim that this does not
  166.   produce good results, but there are others who claim to have had
  167.   satisfactory results with these programs.  There were a couple of articles
  168.   in COMPUTE Gazette and I think RUN on how to do this.  The real problem is
  169.   mechanical in nature and can be over come.  Other products are PHYSICAL
  170.   EXAM 1541 and 1571 versions.
  171.  
  172.   1571
  173.  
  174.   The C=1571 drive is normally a double sided drive.  However, it can also
  175.   emulate a 1541 and read single sided disks.  Some of the earlier 1571's had
  176.   older system chips (ROMs) which caused a couple of problems.  One, these
  177.   older drives were typically very slow when writing to the back side of a
  178.   disk.  Two, it would take these drives ~30 seconds to go into single sided
  179.   mode.  To check your ROM version, read the error channel of the disk drive
  180.   right after startup.  On the 128, just PRINT DS$.  On the 64, use:
  181.  
  182.   10 open15,8,15:input#15,a,a$,b,c:close15:printa,a$,b,c
  183.  
  184.   Run the program; if the message says v3.0 or v3.1, you have the newer ROM.
  185.   If it has a version <3.0, you probably have the older ROM.
  186.  
  187.   One problem that might occur is not having the head close enough to the disk
  188.   as required because of the light tension of the spring that pulls the head
  189.   down.  Somewhere I remember that there was supposed to be a replacement
  190.   part.  However, one of the alignment programs suggesting using pennies to
  191.   weight it down and lo and behold it started working.
  192.  
  193.   1581
  194.  
  195.   The C=1581 drive is a 3.5" drive that uses DSDD 800K disks.  It is
  196.   compatible with both the C64 and C128, although some programs will not work
  197.   correctly with the 1581.
  198.  
  199.   A small number of 1581's were shipped with an early version of a controller
  200.   chip which has problems with some software.
  201.  
  202.   
  203.   11.2.  What do I do for my ill computer?
  204.   
  205.   At times, every computer must be serviced.  As the parts supply of Commodore
  206.   equipment dwindles, servicing becomes harder.  However, there are many
  207.   sources in Section 16.2 that can service your Commodore machine, and here
  208.   are some things you can do to service it yourself.
  209.   
  210.   If the screen is garbled, but BASIC seems to be limping along, and any
  211.   command is met by an error, RAM could be bad.  You can look at bit 
  212.   patterns on the screen by determining screen codes for  garbage characters.
  213.   only bit 4 (32) should be on.  After you determine which bits, here is the
  214.   bit->IC mapping:
  215.        
  216.   Bit 7 (128) : U12
  217.   Bit 6 (64)  : U24
  218.   Bit 5 (32)  : U11
  219.   Bit 4 (16)  : U23
  220.   Bit 3 (8)   : U10
  221.   Bit 2 (4)   : U22
  222.   Bit 1 (2)   : U9
  223.   Bit 0 (1)   : U21
  224.  
  225.   A common problem with the C-64 is it's power supply.  The C64 power
  226.   supplies are not especially powerful, and have this disturbing tendency to
  227.   fail.  If your computer stops working, first check the power supply.
  228.   Replacement power supplies can be obtained from a number of mail order
  229.   places (e.g. Tenex, Parsec, Inc.).  Additionally, several places advertise
  230.   "heavy-duty" power supplies that come with warranties, and give the C64
  231.   enough power to run a REU.
  232.  
  233.   If your power supply goes, it can sometimes take other parts of the
  234.   computer with it.  If your power supply has died, but the C64 continues
  235.   to fail with a known working power supply, it is likely that a few of your
  236.   chips got fried.
  237.  
  238.   Also, another common problem with the C64 is the fuse inside the computer.
  239.   If the system power on light comes on, but you get a blank screen, suspect
  240.   the fuse.  It is usually blown by misinsertion of devices into the computer.
  241.  
  242.  
  243.   11.2.2.  What do I do for my ill Commodore 128?
  244.  
  245.   Like the 1571, the C-128 has an older ROM and a newer ROM.  The differences
  246.   between the two are less serious than is the case with a 1571.  The easiest
  247.   way to tell the difference is to click down the CAPS LOCK key and hit Q
  248.   while in BASIC direct mode.  If you see a lower case q, then you have an
  249.   older ROM.  If you see an upper case Q, then you have a newer ROM.  New ROMs
  250.   can be ordered from (e.g. the Grapevine Group) for about $25.  The ROM chips
  251.   in the 128 are all socketed, so replacing the chips is relatively easy.
  252.  
  253.   
  254.   11.3.  What do I do for my ill keyboard?
  255.   
  256.     Clean it:
  257.  
  258.     Materials you will need:
  259.  
  260.     Denatured (rubbing) alcohol, a clean pencil eraser, cotton swabs, a small
  261.     Phillips head screwdriver, a jewellers size Phillips screwdriver, a
  262.     solder iron of some type, and a Commodore 64 computer keyboard.
  263.  
  264.     Procedure:
  265.  
  266.     1. FIRST AND FOREMOST. Make certain that you have discharged any static
  267.        electricity in your body by grounding yourself to something like a cold
  268.        water pipe. Otherwise, you could blow chips in your computer if you
  269.        were to touch the wrong things.
  270.  
  271.     2. Turn off your computer and unplug any and all cords and connectors,
  272.        fast-loaders, modems, etc. (just have yourself a naked (if you will
  273.        excuse the expression) computer).
  274.  
  275.     3. Thoroughly clean all external connectors and ports with the swabs and
  276.        alcohol. Also, clean all plugs that go into those ports. If the problem
  277.        you had persists, proceed with the following:
  278.  
  279.     4. On a clean surface, turn your key-board upside-down. Remove the screws
  280.        in the bottom.
  281.  
  282.     5. CAREFULLY, separate the two halves about an inch. Unplug the connector
  283.        to the "power" LED on the top of the C-64.
  284.  
  285.     6. Place the two halves flat so that the keyboard is facing  you. The two
  286.        halves will be connected by a wire harness. This harness may be held
  287.        down by tape that must be removed in order to place the unit flat.
  288.  
  289.     7. Remove the 15 or so brass screws that hold the  circuit  board  under
  290.        the keyboard.
  291.        
  292.     7a.Unsolder the wires going to the shift-lock key.
  293.  
  294.     8. Turn the circuit board over. You will see the bottom of the keyboard
  295.        with a rubber "U" under each key, which makes contact with the board.
  296.        You will also see on the circuit board, a pair of gold contacts for
  297.        each key on the C-64.
  298.  
  299.     9. CAREFULLY wash ALL the rubber "U"'s and the gold contacts with the
  300.        swabs and rubbing alcohol. Allow the alcohol to DRY.
  301.  
  302.     10.Gently, clean each gold contact with the eraser. BRUSH AWAY THE ERASER
  303.        CRUMBS (I use  a  small  hand-held, battery-powered vacuum cleaner).
  304.  
  305.     11.Re-clean the gold contacts with the swabs and alcohol to ensure that
  306.        you have removed ALL traces of the eraser.
  307.  
  308.     12.Reassemble the C-64 in the reverse order of disassembly.
  309.  
  310.  
  311.   12.  Modifications and Cabling
  312.   
  313.   As time wears on, many Commodore owners are turnign to themselves to
  314.   manufacture small interfaces, modify their systems, and perform other
  315.   enhancements.  Here are some common things the user can construct
  316.   himself or herself.
  317.   
  318.    
  319.   12.1.  How can you alter which side a 1571 reads from?
  320.   
  321.   On a 128, you can force the 1571 to go into single sided mode with the drive
  322.   command "u0>m0".  (Issue such a command with open15,8,15,"u0>m0":close15.)
  323.   On the 64, a 1571 defaults to single sided mode, but you can convert it to
  324.   double sided mode (and read full double sided disk in 64 mode) with the
  325.   drive command "u0>m1".  While in single sided mode, you can actually format
  326.   both sides of the disk as separate file systems.  The command "u0>h0"
  327.   selects the regular side of the disk, and "u0>h1" selects the flip side of
  328.   the disk.  Note that the flip side, when formatted this way, cannot be read
  329.   by a 1541; neither side will be readable by a 1571 when the disk is
  330.   inserted upside-down.
  331.  
  332.   
  333.   12.2.  How do I open a C128 power supply?
  334.  
  335.   First, unplug both leads running from the power supply and turn it upside
  336.   down.  Locate four (4) small circles in the bottom; two are in the corners 
  337.   and two in the other end a bit nearer each other.
  338.  
  339.   Find some sharp tool, e.g. pin or nail.  In turn, poke it inside each of 
  340.   the cirles, firmly, and pull the caps off gently. They'll come out easily. 
  341.   Breaking the caps should not matter, but there is no need to destroy the 
  342.   casing in process.
  343.  
  344.   Unsrew the 4 Phillips headed srews with an appropriate tool.
  345.  
  346.   Notes: 
  347.   
  348.   This does not apply to the C64 brick!
  349.   
  350.   Some 128 power supplies do not have rubber feet; rather, they have "L"-
  351.   shaped extensions on the casing.  The caps on these extensions are not
  352.   made of rubber, but can be removed.
  353.  
  354.  
  355.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  356.   
  357.   Here is the diagram used to make a replacement Chroma / Luminence 40
  358.   column cable, that the 1902A uses, to connect to the 64 or 128.  
  359.  
  360.         _______                             ________
  361.       /    3    \      1.  Not Used        /    2    \    *1. Luminance
  362.      / 2       4 \    *2.  Audio          / 4      5  \   *2. Ground  
  363.     !             !   *3.  Ground        !             !  *3. Audio out
  364.     !      6      !   *4.  Chroma        ! 1    6    3 !   4. Video out
  365.     !             !    5.  Not Used      !             !   5. Audio in
  366.      \ 1       5 /    *6.  Luminance      \  7     8  /   *6. Chroma
  367.       \____n____/                          \____n____/     7. Not used
  368.                                                            8. Not used
  369.          1902A                                64/128
  370.                             * Actually used
  371.  
  372.  
  373.   12.4.  How do I build a simple RS-232 interface cable?
  374.   
  375.   Here are a couple of different interface ideas, and another can be found
  376.   at ftp://ftp.funet.fi/pub/CBM/documents/rs232.txt
  377.  
  378.   Using MAX-232 IC:
  379.     
  380.   Userport C64                                           C64 RS232
  381.                           _________
  382.                          |         |
  383.       PA2 M-----------11-|         |-14------------------- TXD (2)
  384.       PB1 D-----------10-|         |--7------------------- RTS (4)
  385.       PB6 K-----------12-| MAX 232 |-13------------------- CTS (5)
  386.     FLAG2 B---X--------9-|         |--8------------------- RXD (3)
  387.       PB0 C---|          |         |--3--|+-|
  388.       VCC 2-----------16-|         |--1-----|              DB25-connector
  389.       GND N------X----15-|         |
  390.                  X--|+-2-|         |--5--|+-|
  391.                  X--+|-6-|_________|--4-----|
  392.                  |
  393.                  |---------------------------------------- GND (7)
  394.  
  395.    -|+- capacitor 22uF/16V
  396.    -  +
  397.  
  398.   Using Transistors:
  399.  
  400.                           RS-232 interface
  401.                       <Transistors are 2n2222>
  402.   <24 pin edge connector>
  403.   N <-----------------------+-----------+
  404.                            /            !
  405.           22k         !-!>+             !
  406.   M <----/\/\/--------!                 !
  407.                       !---+             !
  408.           1k               \            !  <male db25 connector>
  409.   2 <----/\/\/--------------+------------>-------------------> 2
  410.                                         !
  411.                       +-----------------+
  412.                        \
  413.                         +<!-!                22k
  414.                             !---------------/\/\/------------> 8
  415.                         +---!
  416.                        /
  417.   H <-----------------+
  418.  
  419.   E <--------------------------------------------------------> 20
  420.  
  421.   C <---+
  422.         !
  423.   B <---+-------------+
  424.                        \
  425.                         +---!                22k
  426.                             !---------------/\/\/------------> 3
  427.                         +<!-!
  428.                        / 
  429.   A <-----------------+--------------------------------+-----> 7
  430.                                                        !
  431.                                                        +-----> 4
  432.                                                        !
  433.                                                        +-----> 1
  434.  
  435.  
  436.   If you are having problems with this circuit as it stands, you may wish
  437.   to modify it in this way to reverse the clock signal:
  438.   
  439.   Disconnect the emitter and collector on the middle transistor of the 
  440.   diagram (the one that goes to the H line on the computer side)
  441.   Connect the collector to pin 2 on the 24 pin edge connector (the 5v Vcc 
  442.   line), connect the emitter to pin H on the same connector, then connect a 
  443.   1k ohm resistor to the same pin H and the other end of the resistor to pin N
  444.   or A. 
  445.   
  446.  
  447.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  448.   
  449.   A new programming technique makes it possible to acheive 9600 bps on an
  450.   unexpected Commodore 64 without the use of a Swiftlink cartridge.  
  451.   Daniel Dallmann of Germany is the originator of this technique and is
  452.   currently writing modem drivers for some of the popular C64 terminal
  453.   emulation programs to take advantage of this new technique.
  454.   
  455.   The interface described below is a little more complex than the one
  456.   in Section 12.4, but has many advantages:
  457.  
  458.   * The interface generates proper EIA232 (RS-232) voltage levels.  
  459.     The one in Section 12.4 relies on the ability of most newer RS232
  460.     equipment to handle lower voltages.
  461.     
  462.   * The following interface can be used as a direct replacement for the
  463.     interface in Section 12.4, and will work will all existing 
  464.     telecommunications programs at up to 2400 bps, while providing the
  465.     necessary interfacing to allow suitably equipped applications to
  466.     operate at up to 9600 bps.
  467.     
  468.   * if you currently own a normal RS232 interface, that interface can be
  469.     modified to incorporate the new interfacing for 9600 bps operation.   
  470.     (in some cases one line of the old interface has to be disconnected,
  471.      see note **1 )
  472.  
  473.   9600 bps is the maximum limit this type of technique due to the timing
  474.   limitations of the C64.  The delay between the activation of the NMI-handler
  475.   and the falling edge of rxd is too long.  The handler must be called in 
  476.   less than 100 cycles.  That's no problem at 9600 bps, but for 19200 baud 
  477.   (the next higher baud rate), you have only 50 cycles, and that's impossoble 
  478.   (because of VIC-DMA ).  On a C128 in fast mode 38400 baud may be possible,
  479.   but I don't have a C128, so someone else has to try it out.
  480.  
  481.  
  482.               Schematic of a very simple RS232-Interface:
  483.   
  484.   
  485.     userport                       MAX232         rs232   9pin  25pin
  486.                                 +----------+
  487.                                 !          !
  488.   (C)    pb0--+                 !          !
  489.               !                 !    /!    !
  490.   (B)  flag2--*--------------------O< !---------  rxd     2      3
  491.               !                9!    \!    !8
  492.   *7*    sp2--+                 !          !
  493.                                 !          !
  494.   *6*   cnt2--+                 !          !
  495.               !                 !          !
  496.   *L*    pb7--+ <NOTE **1!>     !          !
  497.                                 !  !\      !
  498.   (M)    pa2--*--------------------! >O---------  txd     3      2
  499.               !               11!  !/      !14
  500.   *5*    sp1--+                 !          !
  501.                   74ls00        !          !
  502.                   +-----+       !          !
  503.                   !     !       !  !\      !
  504.   (D)    pb1-*------>O-------------! >O---------  rts     7      4
  505.              !   1!     !3    10!  !/      !7
  506.              +----!     !       !          !
  507.                  2!     !       !    /!    !
  508.   (K)    pb6--------O<-----*-------O< !---------  cts     8      5
  509.                  6!     !4 !  12!    \!    !13
  510.                   !     !--+    !          !
  511.   (1)    gnd------!     !5      !          !---   gnd     5      7
  512.                  7!     !       !          !15
  513.   (2)    +5V------!     !       !          !     (dsr     6      6)
  514.                 14+-----+       !          !
  515.                                 !          !     (dcd     1      8)
  516.                                 !          !
  517.                                 !          !     (dtr     4     20)
  518.                         ! !+    !          !
  519.   (1)    gnd------------! !-----!          !     (ri      9     22)
  520.                         ! !    2!          !
  521.                                 !          !
  522.                        +! !     !          !
  523.   (1)    gnd------------! !-----!          !
  524.                         ! !    6!          !
  525.                                 !          !
  526.                         ! !+    !          !
  527.                       +-! !-----!          !
  528.                       ! ! !    1!          !
  529.                       !         !          !
  530.                       +---------!          !
  531.                                3!          !
  532.                         ! !+    !          !
  533.                       +-! !-----!          !
  534.                       ! ! !    4!          !
  535.                       !         !          !
  536.                       +---------!          !
  537.                                5!          !
  538.                                 !          !
  539.   (1)    gnd--------------------!          !
  540.                               15!          !
  541.                                 !          !
  542.   (2)    +5V--------------------!          !
  543.                               16+----------+
  544.  
  545.   (x) - connections required for a normal RS232-Interface.
  546.   *x* - additional connections to go up to 9600 baud.
  547.  
  548.   remark: The MAX232 needs 4 capacitors (22uF each)
  549.           to generate +/- 10volts signals.
  550.  
  551.   notes :
  552.   
  553.      **1 Some other interfaces use this pin.  In that case you have to cut 
  554.          the connection and change it to new way.  PB7 is normally used to 
  555.          receive the DSR (Data Set Ready) signal from the modem, but this 
  556.          signal isn't supported by all terminal programs.  Because of the new 
  557.          wiring DSR will seem to be active to all 'old' programs, so that 
  558.          there won't be any troubles.
  559.  
  560.  
  561.      Top view of the used ICs:
  562.   
  563.           74 LS 00                    MAX232
  564.           +------+                   +------+
  565.      inA -!1 \/14!- vcc       +cap1 -!1 \/16!- Vcc
  566.      inA -!      !-  inC      +cap2 -!      !- GND
  567.     outA -!      !-  inC      -cap1 -!      !- RS232/txd
  568.      inB -!      !- outC      +cap3 -!      !- RS232/cts
  569.      inB -!      !-  inD      -cap3 -!      !- TTL/^cts
  570.     outB -!      !-  inD      -cap4 -!      !- TTL/txd
  571.      gnd -!7    8!- outD  RS232/rts -!      !- TTL/^rts
  572.           +------+        RS232/rxd -!8    9!- TTL/rxd
  573.                                      +------+
  574.           4 X NAND
  575.                                      2 X RS232 transmitter
  576.                                      2 X RS232 receiver
  577.  
  578.         user port (view on C64s backside)
  579.  
  580.        1  2  3  4  5  6  7  8  9 10 11 12   (top)
  581.       ------------------------------------
  582.        A  B  C  D  E  F  H  J  K  L  M  N   (bottom)
  583.   
  584.           1 - GND       A - GND
  585.           2 - +5V       B - ^flag2
  586.           3 - ^reset    C - pb0
  587.           4 - cnt1      D - pb1
  588.           5 - sp1       E - pb2
  589.           6 - cnt2      F - pb3
  590.           7 - sp2       H - pb4
  591.           8 - ^pc2      J - pb5
  592.           9 - atn in    K - pb6
  593.           10- 9V AC     L - pb7
  594.           11- 9V AC     M - pa2
  595.           12- GND       N - GND
  596.  
  597.  
  598.   12.6.  How can I determine how much VDC video memory is in my C128?
  599.  
  600.   Here are two ways to detect whether the C128 VDC chip has 16kB or 64kB
  601.   of RAM. 
  602.  
  603.   1 rem fred's nifty program to determine size of 8563 dram
  604.   5 w=dec("cdcc"):r=dec("cdda")
  605.   10 bank15: ad=dec("d600"): da=ad+1 :rem setup ml
  606.   20 pokead,28: s=peek(da): pokeda,63 :rem select 64k
  607.   30 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,85,31 :rem write $55
  608.   40 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc1 :rem read here
  609.   50 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc2 :rem and here
  610.   60 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,170,31 :rem write $aa
  611.   70 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc3 :rem read here
  612.   80 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc4 :rem and here
  613.   90 pokead,28: pokeda,s:sysdec("ff62") :rem restore 16/64k
  614.   95 print chr$(14)chr$(147)
  615.   100 if c1=c2 and c3=c4 then print "16K": else print"64K"  :rem did it echo? 
  616.   110 end
  617.  
  618.   or:
  619.  
  620.   POKE DEC("D600"),28:POKE DEC("D601"),63:SYS DEC("FF62"):SCNCLR
  621.  
  622.   If you have 16k the screen will fill with zeros; 64k will give you a 
  623.   ready prompt.
  624.  
  625.  
  626.   12.7.  How can I convert my C64 to run on battery power?
  627.  
  628.   The July, 1990 issue of 73 Amateur Radio has an article on converting
  629.   the C64 and 1541 to run on DC power. I'll summarize the C64 portion:
  630.  
  631.   DC Power Conversion for the C64
  632.  
  633.   1. Locate component CR4 on the circuit board. Mark the positive hole on
  634.      the board. Desolder and remove the component.
  635.      
  636.   2. Rest :-)
  637.  
  638.   3. Connect the marked hole to +12V.
  639.  
  640.   4. Desolder and remove VR1. Looking down at the component side of the
  641.      board, connect a wire from the vacant right hand hole and run it to
  642.      +12V.
  643.  
  644.   5. Locate L5. It will probably be in one of two locations. On the older
  645.      version, desolder the right hand leg and lift. On the newer version,
  646.      desolder the top leg and lift.
  647.  
  648.   6. Connect +5V to the empty L5 hole.
  649.  
  650.   7. Locate the R37 and R100 pads. Use a continuity meter to find the pads
  651.      that are connected. Desolder and lift these legs. You will insert a
  652.      60 Hz clock here.
  653.  
  654.   8. You could generate this clock using a variety of methods. Here's one:
  655.                                   +12V
  656.           __________________________|
  657.           |                         |
  658.           | C1    R1          ______|_______
  659.           |-)|-+-/\/\/-+-----|6     8       |
  660.           |    |       \     |              |
  661.           |   XTAL1    / R2  |    MM5369    |
  662.           |    |       \     |              |
  663.           |-)|-+-------+-----|5            1|---> 60 Hz (to R37 pad)
  664.             C2               |      2       |
  665.                               ---------------
  666.                                     |
  667.                                    GND
  668.  
  669.   C1 = 30 pF
  670.   C2 = 3-15 pF (variable)
  671.   XTAL1 = 3.57 MHz crystal
  672.   R1 = 1k
  673.   R2 = 10M
  674.  
  675.   It is suggested that you use a short length of shielded coax cable to
  676.   connect the 60 Hz output to the R37/R100 pad.
  677.  
  678.   Also, it is suggested that you use a frequency counter to tune the above
  679.   circuit to exactly 60 Hz.
  680.  
  681.   This conversion would work well if you wanted to use the C64 in a car or powered
  682.   by a solar set-up.
  683.  
  684.  
  685.   12.7.  How do I build a GEOCable interface?
  686.   
  687.   The interface is simply a cable between the printer and the user port.  
  688.   The pinout is as follows:
  689.   
  690.   pin on 64        pin on printer
  691.   
  692.   a  Ground        33  Grond
  693.   b  Flag 2        11  Busy
  694.   c  PB0            2  Data 1
  695.   d  PB1            3  Data 2
  696.   e  PB2            4  Data 3
  697.   f  PB3            5  Data 4
  698.   h  PB4            6  Data 5
  699.   j  PB5            7  Data 6
  700.   k  PB6            8  Data 7
  701.   l  PB7            9  Data 8
  702.   m  PA2            1  Strobe
  703.   n  Ground        16  Ground
  704.  
  705.   Superscript uses the same cable, but has the following change:
  706.  
  707.   b  Flag 2        10  Acknowledge
  708.  
  709.   Either wiring will work with either program, but the GEOCable wiring
  710.   is preferred.
  711.   
  712.  
  713. -- 
  714. Jim Brain, Embedded Systems Designer, Brain Innovations, Inc.  (BII)
  715. brain@mail.msen.com "Above views DO reflect my employer, since I'm my employer"
  716. Dabbling in WWW, Embedded Systems, VR, Old CBM computers, and Good Times! -Me-
  717. <a href=http://www.msen.com/~brain/>BII, VR, CBM, and personal info</a>
  718.